package com.easygo.mapper;

import com.easygo.pojo.Brand;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @BelongsProject: easygo
 * @BelongsPackage: com.easygo.mapper
 * @Author: wangzhen
 * @QQ:425042686
 * @CreateTime: 2024-03-27 10:17
 * @Description: TODO
 */
@Mapper
public interface BrandMapper {

    // 获取所有品牌
    public List<Brand> getBrands();

    // 添加品牌
    public int addBrand(Brand brand);

    // 更新品牌
    public int updateBrand(Brand brand);

    // 根据id获取品牌
    public Brand getBrandById(Integer id);

    // 根据id删除品牌
    public int deleteBrand(Integer id);

    // 根据ids删除品牌
    public int deleteSome(@Param("ids") String ids);

    // 根据ids删除品牌
    public int deleteSome1(Integer[] ids);

}
